package com.atkxp.stustatusmasystem.service;

import com.atkxp.stustatusmasystem.mapper.MajorMapper;
import com.atkxp.stustatusmasystem.pojo.Major;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/28-17:31
 */
@Service
public class MajorServiceImpl implements MajorService {

    @Autowired
    public MajorMapper majorMapper;

    @Override
    public Major getMajorById(int id) {
        return majorMapper.getMajorById(id);
    }

    @Override
    public List<Major> getAllMajor() {
        return majorMapper.getAllMajor();
    }

    @Override
    public List<Major> getAllMajorByTid(String tid) {
        return majorMapper.getAllMajorByTid(tid);
    }
}
